package no.ntnu.fp.gui.dialog;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JToggleButton;
import javax.swing.ButtonGroup;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

@SuppressWarnings("serial")
public class AcceptOrDecline extends JPanel {
	
	private ButtonGroup buttonGroup ;
	private JToggleButton toggleAccept;
	private JToggleButton toggleDeny;
	private JButton cancelButton;
	private Font lgType = new Font("Tahoma", Font.PLAIN, 14);

	/**
	 * Create the panel.
	 */
	public AcceptOrDecline() {
		setPreferredSize(new Dimension(350, 55));
		setLayout(null);
		
		buttonGroup = new ButtonGroup();
		
		toggleAccept = new JToggleButton("Godta");
		toggleAccept.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				// TODO:
			}
		});
		toggleAccept.setBounds(225, 11, 115, 33);
		toggleAccept.setFont(lgType);
		buttonGroup.add(toggleAccept);
		add(toggleAccept);
		
		toggleDeny = new JToggleButton("Avvis");
		toggleDeny.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				// TODO:
			}
		});
		toggleDeny.setBounds(100, 11, 115, 33);
		toggleDeny.setFont(lgType);
		buttonGroup.add(toggleDeny);
		add(toggleDeny);
		
		cancelButton = new JButton("Avbryt");
		cancelButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				// TODO:
			}
		});
		cancelButton.setBounds(10, 11, 80, 33);
		cancelButton.setFont(lgType);
		add(cancelButton);
	}
	
}
